<!--
* @FileDescription: 三恒实时联动
* @Author: yuec621@outlook.com
* @Date: 2025-10-13 14:18:45
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2025-10-13 15:19:27
-->
<template>
    <div class="pagestyle">
        <list_controller ref="zujianname" :options="state.options" :noprintDownShow="true">
            <template v-slot:opraCurdBtnAll>
                <span :class="state.listBtnType == 1 ? 'listInfoBtn active' : 'listInfoBtn'
                    " @click="listInfoBtnClick(1)">
                    <svg-icon :class="state.listBtnType == 1 ? 'active' : ''" class-name="search-icon"
                        icon-class="qiehuan" />
                    三恒历史联动
                </span>
            </template>
            <template v-slot:selectNamelist>
                三恒实时联动
            </template>
        </list_controller>
    </div>
</template>
<script setup>
import list_controller from "@/components/commonCom/list_controller";
import {
    computed,
    nextTick,
    reactive
} from "vue";
import {
    ElMessage,
    ElMessageBox
} from 'element-plus'
import {
    table_headers
} from '@/components/commonCom/table_headers';
import axios from "@/utils/request"
import usePagesStore from '@/store/modules/pages'
import useUserStore from "@/store/modules/user";
const userStore = useUserStore();
const {
    proxy
} = getCurrentInstance();
const store = usePagesStore()
const router = useRouter();
const upload = ref(null)
let state = reactive({
    options: {
        tableheads: computed(() => table_headers.realLinkageControl),
        queryList: {
            dropdownUrl: '',
            querys: [
                {
                    field: "linkageTarget",
                    title: "联动目标",
                    type: "select",
                    binddata: "",
                    options: [{
                        label: '人员定位',
                        value: '人员定位'
                    },{
                        label: '广播、程控',
                        value: '广播、程控'
                    }],
                },
                {
                    field: "linkageType",
                    title: "联动类型",
                    type: "select",
                    binddata: "",
                    options: [{
                        label: '报警',
                        value: '报警'
                    },{
                        label: '断线',
                        value: '断线'
                    },{
                        label: '标校',
                        value: '标校'
                    },{
                        label: '预报警',
                        value: '预报警'
                    },{
                        label: '联动测试',
                        value: '联动测试'
                    }],
                },
                 {
                    field: "typeName",
                    title: "数据类型",
                    type: "select",
                    binddata: "",
                    options: [{
                        label: '测点',
                        value: '测点'
                    },{
                        label: '组合报警',
                        value: '组合报警'
                    }],
                },
            ]
        },
        dataUrl: '/realLinkageControl/list',
    },
})
function listInfoBtnClick() {
    router.push({
        name: 'Link_hisLinkSH'
    })
}



</script>
<style lang="scss" scoped></style>